/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package xmlutils;

import org.kxml.kdom.Element;

/**
 *
 * @author Administrator
 */
public class ConditionsData {

    private String location;
    private String temp;
    private String dew;
    private String hum;
    private String slp;
    private String feelsLike;
    private String sky;
    private String cloudIcon;
    private String windDir;
    private String windSpd;

    public ConditionsData(Element conditionsElement) {
        if (conditionsElement != null) {
            Element e;
            e = conditionsElement.getElement("LOCATION");
            location = e.getText();
            e = conditionsElement.getElement("TEMP");
            temp = e.getText();
            e = conditionsElement.getElement("DEW");
            dew = e.getText();
            e = conditionsElement.getElement("HUM");
            hum = e.getText();
            e = conditionsElement.getElement("SLP");
            slp = e.getText();
            e = conditionsElement.getElement("FEELS_LIKE");
            feelsLike = e.getText();
            e = conditionsElement.getElement("SKY");
            sky = e.getText();
            e = conditionsElement.getElement("CLOUD_ICON");
            cloudIcon = e.getText();
            e = conditionsElement.getElement("WIND_DIR");
            windDir = e.getText();
            e = conditionsElement.getElement("WIND_SPD");
            windSpd = e.getText();
        }
    }

    public String getCloudIcon() {
        return cloudIcon;
    }

    public String getDew() {
        return dew;
    }

    public String getWindDir() {
        return windDir;
    }

    public String getWindSpd() {
        return windSpd;
    }

    public String getFeelsLike() {
        return feelsLike;
    }

    public String getHum() {
        return hum;
    }

    public String getLocation() {
        return location;
    }

    public String getSky() {
        return sky;
    }

    public String getSlp() {
        return slp;
    }

    public String getTemp() {
        return temp;
    }
}
